import request from '@/utils/request'

// 查询社保方案列表
export function listSocialInsncPgm(query) {
  return request({
    url: '/hrm/socialInsncPgm/list',
    method: 'get',
    params: query
  })
}

// 查询社保方案列表
export function listSocialInsncPgmAll(query) {
    return request({
        url: '/hrm/socialInsncPgm/listAll',
        method: 'get',
        params: query
    })
}

// 查询社保方案详细
export function getSocialInsncPgm(id) {
  return request({
    url: '/hrm/socialInsncPgm/' + id,
    method: 'get'
  })
}

// 新增社保方案
export function addSocialInsncPgm(data) {
  return request({
    url: '/hrm/socialInsncPgm',
    method: 'post',
    data: data
  })
}

// 修改社保方案
export function updateSocialInsncPgm(data) {
  return request({
    url: '/hrm/socialInsncPgm',
    method: 'put',
    data: data
  })
}

// 删除社保方案
export function delSocialInsncPgm(id) {
  return request({
    url: '/hrm/socialInsncPgm/' + id,
    method: 'delete'
  })
}
